<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id='app-4'>
    <div
    :class='{Activated:isActivate, green: isGreen}'
    style='width: 200px; height: 200px; text-align: center; line-height: 200px;'>hi vue!
    </div>

    <div
    :style="{color: isRed}"
    >rollingball</div>
</div>

<script>
    var app4 = new Vue({
        el: '#app-4',
        data: {
            isActivate: true,
            isGreen: true,
            isRed: '#FF0000'
        }
    })
</script>

<style>
    .Activated{background: cadetblue;}
    .green{color:rgb(97, 199, 1)}
</style>

</body>
</html>
